﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DemoASPWC.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript" src="js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" language="javascript" src="js/jquery-webcam/jquery.webcam.js"></script>
    
</head>
<body>
    <input type="button" value="Shoot!" onclick="webcam.capture();" />
    <div id="Camera"></div>
    <script type="text/javascript" language="javascript">
        $("#Camera").webcam({
            width: 320,
            height: 240,
            mode: "save",
            swffile: "js/jquery-webcam/jquery.webcam.js",
            onTick: function () { },
            onSave: function () {
            },
            onCapture: function () {
                webcam.save("controller/WebcamController.ashx");
            },
            debug: function () { },
            onLoad: function () { }
        });
    </script>
</body>
</html>
